Download memadmin,:http://www.junopen.com/memadmin/and create a new site in IIS. Test address: Http://wap.yousawang.com/mem,1. Restart ApacheService httpd Restrat/ETC/INIT.D/HTTPD stop/ETC/INIT.D/HTTPD start2. Restart MySQLService mysqld Restart/etc/
I. Prepare the source code package
The server is mainly installed on the memcache server, the latest version is memcached-v1.4.4.Download: http://memcached.googlecode.com/files/memcached-1.4.4.tar.gzIn addition, Memcache uses the libevent library
First, the source code package preparation
Server side is mainly installed Memcache server side, the latest version is memcached-v1.4.4.Download: http://memcached.googlecode.com/files/memcached-1.4.4.tar.gzIn addition, Memcache used libevent This
How to use:
Memcached
Copy the Code code as follows:
$cache = new Cache_memcache ();$cache->addserver (' www1 ');$cache->addserver (' www2 ', 11211,20); This server has double the memory, and gets double the weight$cache->addserver (' www3 ', 11211)
A summary of the usage scenarios for memcached and Redis, based on the discussions of the great gods and the information I found online:Compare the two:
Redis provides data persistence, memcached no persistence;
The data structure of Redis
About the use of memcached and Redis scene, according to the great God's discussion and I found the information on the Internet, summed up: The comparison: The Redis provides data persistence function, memcached no persistence; Redis's data
This article mainly introduces the differences and selection suggestions of eAccelerator, memcached, xcache, APC, and other four acceleration and cache extensions in PHP. if you need them, you can refer to your VPS colleagues, install LNMP... this
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.